package com.xunlai.infra.permission.storage.entity;

import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author liang
 * @date 2022/11/30 20:49
 */
@Table("system_auth_group_crew")
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AuthGroupCrew extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 3017788164882364914L;

    @Id
    private Long id;

    private Long groupId;

    private Long crewId;

    /**
     * @see RoleRelation.RelationTargetTypeEnum
     */
    private Short crewType;

    private Boolean enable;


}
